package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;

public class FlyBirdBattle extends BaseCard {
    public static final String ID = makeID(FlyBirdBattle.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.ATTACK,
            CardRarity.UNCOMMON,
            CardTarget.ENEMY,
            1
    );

    public FlyBirdBattle() {
        super(ID, info);
        setAttr(10,0,2);
        setAttrUpg(2,0,1);
    }

    @Override
    public void triggerOnGlowCheck(){
        if(getInCopyUse()){
            glowColor = AbstractCard.GOLD_BORDER_GLOW_COLOR.cpy();
        }else{
            super.triggerOnGlowCheck();
        }
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if(getInCopyUse()){
            for(int i=0;i<magicNumber;i++){
                damageMonster(m);
            }
        }
        damageMonster(m);
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new FlyBirdBattle();
    }



}
